package com.sxz.sbs.module.client.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.client.bean.CompactBean;

import java.util.List;

/**
 * 合同适配器
 */

public class CompactListAdapter extends BaseQuickAdapter<CompactBean.ListBean,BaseViewHolder>{

    public CompactListAdapter(@Nullable List<CompactBean.ListBean> data) {
        super(R.layout.item_compact_list_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CompactBean.ListBean item) {
        helper.setText(R.id.tv_item_compact_number,item.getShowInfoNum());
        helper.setText(R.id.tv_item_compact_xq,item.getParkName());
        helper.setText(R.id.tv_item_compact_address,item.getShowInfoAddress());
    }
}
